package com.jarvan.form;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class TrainForm {

    @NotEmpty(message = "型号必填")
    private String trainId;

    @NotNull(message = "火车类型必填")
    private String trainType;

    @NotNull(message = "出发站必填")
    private String start;

    @NotNull(message = "终点站必填")
    private String end;

    @NotNull(message = "出发时间必填")
    private String startTime;

//    private String endTime;
    /* 车厢数 */
    @NotNull(message = "车厢数必填")
    private Integer carriage;

    @NotNull(message = "最快速度必填")
    private Integer maxSpeed;

    @NotNull(message = "每节车厢座位数必填")
    private Integer seatCount;

    @NotNull(message = "里程数必填")
    private BigDecimal mileage;

    @NotNull(message = "单点价格必填")
    private BigDecimal persitePrice;

    @NotNull(message = "总时长必填")
    private Integer totalMin;

    @NotNull(message = "总天数必填")
    private Integer totalDay;

    @NotNull(message = "经过车站信息必填")
    private String stationInfos;
}
